$(function(){
	   //导航
		 //$(".sub-menu").hide();
	  // $(".sub-menu").eq(0).show();
		 var timer,linum;
		 $("#header_nav li").bind("mouseenter",function(){
			 	clearTimeout(timer);
			 	linum = $(this).index()+1;
				linum = $("#sub_menu_"+linum);
				//timer = setTimeout
				linum.siblings().stop().animate({top:"-500px"},100,function(){
						$(this).stop().animate({opacity:"0"},150);
					});	
				linum.css("opacity","1");	
				linum.stop().animate({top:"0px"},150);
			});
			
			$("#header_nav li").bind("mouseout",function(){
				timer = setTimeout(function ()
				{
					 linum.stop().animate({top:"-500px"},100,function(){
							$(this).stop().animate({opacity:"0"},"fast");
						});	 
				},100);
			});
			$("#J_subMenus").hover(function(){
				clearTimeout(timer); 				
				},function(){
					linum.stop().animate({top:"-500px"},100,function(){
								$(this).stop().animate({opacity:"0"},"fast");
					});		
			});

		 
		//滚动Banner图片的显示
		$('#slides').slides({
			preload: true,
			preloadImage: '/images/loading.gif',
			effect: 'fade',
			slideSpeed: 100,
			fadeSpeed: 10,
			play: 5000,
			pause: 10,
			hoverPause: true
		});
    //$('#js-news').ticker();
		
		//金牌服务tabs
		$(".lyindex_jpfw_contents").hide();
		$(".lyindex_jpfw_contents").eq(0).show();
		$(".lyindex_jpfw_tabs li").bind("click",function(){
			var li_index = $(this).index();
			$(this).siblings().removeClass("lyindex_jpfw_current");
			$(this).addClass("lyindex_jpfw_current");
			$(".lyindex_jpfw_contents").hide();
			$(".lyindex_jpfw_contents").eq(li_index).show();
		});	   
		
		//开发者服务tabs
		$(".lyindex_kfz_contents").hide();
		$(".lyindex_kfz_contents").eq(0).show();
		$(".lyindex_kfz_tabs li").bind("mouseover",function(){
			var li_index = $(this).index();
			$(this).siblings().removeClass("lyindex_kfz_current");
			$(this).addClass("lyindex_kfz_current");
			$(".lyindex_kfz_contents").hide();
			$(".lyindex_kfz_contents").eq(li_index).show();
		});
		   
	 })